﻿@{
    ViewBag.Title = "Home Page";
}
@model IQueryable<DDD.Domain.Model.Student>
@*<div class="jumbotron">
        <h1>ASP.NET</h1>
        <p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
        <p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more &raquo;</a></p>
    </div>*@

<div class="row">


    <div class="col-md-6">
        <form action="~/Home/Insert" method="post">
            <div class="form-group">
                <label class="control-label" for="Name">Name</label>
                <input type="text" class="form-control" name="Name" placeholder="Name">
            </div>
            <div class="form-group">
                <label class="control-label" for="EmailAddress">EmailAddress</label>
                <input type="email" class="form-control" name="EmailAddress" placeholder="EmailAddress">
            </div>
                <button type="submit" class="btn btn-default">Submit</button>
        </form>
    </div>
    <div class="col-md-6">
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>Name</th>
                    <th>EmailAddress</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>@item.Name</td>
                        <td>@item.EmailAddress</td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>